package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class VideoResourceUploadRequest extends BaseResourceUploadRequest {

    public static final String PATH = BaseRequest.PATH + "api/upload_vedio";

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        VideoResourceUploadRequestBody body = new VideoResourceUploadRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setExt(getExt());
        body.setData(getData());
        return body;
    }

    private class VideoResourceUploadRequestBody extends BaseResourceUploadRequestBody {

        @SerializedName("Data")
        private String data;

        private VideoResourceUploadRequestBody() {
            setSv(BaseRequestConfig.SV_VIDEO_RESOURCE_UPLOAD);
        }

        public String getData() {
            return data;
        }

        public void setData(String data) {
            this.data = data;
        }
    }

}
